.class public Lcom/kwad/sdk/core/h/d;
.super Ljava/lang/Object;

# interfaces
.implements Lcom/kwad/sdk/api/KsLoadManager;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/kwad/sdk/core/h/d$a;
    }
.end annotation


# static fields
.field private static final a:Landroid/os/Handler;


# direct methods
.method static constructor <clinit>()V
    .locals 2

    new-instance v0, Landroid/os/Handler;

    invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;

    move-result-object v1

    invoke-direct {v0, v1}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V

    sput-object v0, Lcom/kwad/sdk/core/h/d;->a:Landroid/os/Handler;

    return-void
.end method

.method public constructor <init>()V
    .locals 0

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method static synthetic a()Landroid/os/Handler;
    .locals 1

    sget-object v0, Lcom/kwad/sdk/core/h/d;->a:Landroid/os/Handler;

    return-object v0
.end method

.method private static a(Lcom/kwad/sdk/core/h/a/e;Lcom/kwad/sdk/core/h/d$a;)V
    .locals 1
    .param p1    # Lcom/kwad/sdk/core/h/d$a;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param

    const/4 v0, 0x0

    invoke-static {p0, v0, p1}, Lcom/kwad/sdk/core/h/d;->a(Lcom/kwad/sdk/core/h/a/e;Ljava/util/List;Lcom/kwad/sdk/core/h/d$a;)V

    return-void
.end method

.method private static a(Lcom/kwad/sdk/core/h/a/e;Ljava/util/List;Lcom/kwad/sdk/core/h/d$a;)V
    .locals 1
    .param p2    # Lcom/kwad/sdk/core/h/d$a;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/kwad/sdk/core/h/a/e;",
            "Ljava/util/List<",
            "Ljava/lang/String;",
            ">;",
            "Lcom/kwad/sdk/core/h/d$a;",
            ")V"
        }
    .end annotation

    new-instance v0, Lcom/kwad/sdk/core/h/d$8;

    invoke-direct {v0, p0, p1}, Lcom/kwad/sdk/core/h/d$8;-><init>(Lcom/kwad/sdk/core/h/a/e;Ljava/util/List;)V

    new-instance p0, Lcom/kwad/sdk/core/h/d$9;

    invoke-direct {p0, p2}, Lcom/kwad/sdk/core/h/d$9;-><init>(Lcom/kwad/sdk/core/h/d$a;)V

    invoke-virtual {v0, p0}, Lcom/kwad/sdk/core/network/h;->a(Lcom/kwad/sdk/core/network/g;)V

    return-void
.end method


# virtual methods
.method public a(Lcom/kwad/sdk/api/KsScene;)V
    .locals 2

    const/4 v0, 0x4

    invoke-interface {p1, v0}, Lcom/kwad/sdk/api/KsScene;->setAdStyle(I)V

    const/4 v0, 0x5

    invoke-interface {p1, v0}, Lcom/kwad/sdk/api/KsScene;->setAdNum(I)V

    const-string v0, "AdRequestManager"

    const-string v1, "loadSplashScreenCache "

    invoke-static {v0, v1}, Lcom/kwad/sdk/core/d/b;->a(Ljava/lang/String;Ljava/lang/String;)V

    new-instance v0, Lcom/kwad/sdk/core/h/a/e;

    invoke-direct {v0, p1}, Lcom/kwad/sdk/core/h/a/e;-><init>(Lcom/kwad/sdk/api/KsScene;)V

    new-instance p1, Lcom/kwad/sdk/core/h/d$2;

    invoke-direct {p1, p0}, Lcom/kwad/sdk/core/h/d$2;-><init>(Lcom/kwad/sdk/core/h/d;)V

    invoke-static {v0, p1}, Lcom/kwad/sdk/core/h/d;->a(Lcom/kwad/sdk/core/h/a/e;Lcom/kwad/sdk/core/h/d$a;)V

    return-void
.end method

.method public loadDrawAd(Lcom/kwad/sdk/api/KsScene;Lcom/kwad/sdk/api/KsLoadManager$DrawAdListener;)V
    .locals 1
    .param p2    # Lcom/kwad/sdk/api/KsLoadManager$DrawAdListener;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param

    const/4 v0, 0x6

    invoke-interface {p1, v0}, Lcom/kwad/sdk/api/KsScene;->setAdStyle(I)V

    new-instance v0, Lcom/kwad/sdk/core/h/a/e;

    invoke-direct {v0, p1}, Lcom/kwad/sdk/core/h/a/e;-><init>(Lcom/kwad/sdk/api/KsScene;)V

    new-instance p1, Lcom/kwad/sdk/core/h/d$7;

    invoke-direct {p1, p0, p2}, Lcom/kwad/sdk/core/h/d$7;-><init>(Lcom/kwad/sdk/core/h/d;Lcom/kwad/sdk/api/KsLoadManager$DrawAdListener;)V

    invoke-static {v0, p1}, Lcom/kwad/sdk/core/h/d;->a(Lcom/kwad/sdk/core/h/a/e;Lcom/kwad/sdk/core/h/d$a;)V

    return-void
.end method

.method public loadFeedAd(Lcom/kwad/sdk/api/KsScene;Lcom/kwad/sdk/api/KsLoadManager$FeedAdListener;)V
    .locals 1
    .param p2    # Lcom/kwad/sdk/api/KsLoadManager$FeedAdListener;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param

    const/4 v0, 0x1

    invoke-interface {p1, v0}, Lcom/kwad/sdk/api/KsScene;->setAdStyle(I)V

    new-instance v0, Lcom/kwad/sdk/core/h/a/e;

    invoke-direct {v0, p1}, Lcom/kwad/sdk/core/h/a/e;-><init>(Lcom/kwad/sdk/api/KsScene;)V

    new-instance p1, Lcom/kwad/sdk/core/h/d$6;

    invoke-direct {p1, p0, p2}, Lcom/kwad/sdk/core/h/d$6;-><init>(Lcom/kwad/sdk/core/h/d;Lcom/kwad/sdk/api/KsLoadManager$FeedAdListener;)V

    invoke-static {v0, p1}, Lcom/kwad/sdk/core/h/d;->a(Lcom/kwad/sdk/core/h/a/e;Lcom/kwad/sdk/core/h/d$a;)V

    return-void
.end method

.method public loadFullScreenVideoAd(Lcom/kwad/sdk/api/KsScene;Lcom/kwad/sdk/api/KsLoadManager$FullScreenVideoAdListener;)V
    .locals 1
    .param p2    # Lcom/kwad/sdk/api/KsLoadManager$FullScreenVideoAdListener;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param

    const/4 v0, 0x3

    invoke-interface {p1, v0}, Lcom/kwad/sdk/api/KsScene;->setAdStyle(I)V

    new-instance v0, Lcom/kwad/sdk/core/h/a/e;

    invoke-direct {v0, p1}, Lcom/kwad/sdk/core/h/a/e;-><init>(Lcom/kwad/sdk/api/KsScene;)V

    new-instance p1, Lcom/kwad/sdk/core/h/d$3;

    invoke-direct {p1, p0, p2}, Lcom/kwad/sdk/core/h/d$3;-><init>(Lcom/kwad/sdk/core/h/d;Lcom/kwad/sdk/api/KsLoadManager$FullScreenVideoAdListener;)V

    invoke-static {v0, p1}, Lcom/kwad/sdk/core/h/d;->a(Lcom/kwad/sdk/core/h/a/e;Lcom/kwad/sdk/core/h/d$a;)V

    return-void
.end method

.method public loadNativeAd(Lcom/kwad/sdk/api/KsScene;Lcom/kwad/sdk/api/KsLoadManager$NativeAdListener;)V
    .locals 1
    .param p2    # Lcom/kwad/sdk/api/KsLoadManager$NativeAdListener;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param

    const/4 v0, 0x1

    invoke-interface {p1, v0}, Lcom/kwad/sdk/api/KsScene;->setAdStyle(I)V

    new-instance v0, Lcom/kwad/sdk/core/h/a/e;

    invoke-direct {v0, p1}, Lcom/kwad/sdk/core/h/a/e;-><init>(Lcom/kwad/sdk/api/KsScene;)V

    new-instance p1, Lcom/kwad/sdk/core/h/d$5;

    invoke-direct {p1, p0, p2}, Lcom/kwad/sdk/core/h/d$5;-><init>(Lcom/kwad/sdk/core/h/d;Lcom/kwad/sdk/api/KsLoadManager$NativeAdListener;)V

    invoke-static {v0, p1}, Lcom/kwad/sdk/core/h/d;->a(Lcom/kwad/sdk/core/h/a/e;Lcom/kwad/sdk/core/h/d$a;)V

    return-void
.end method

.method public loadRewardVideoAd(Lcom/kwad/sdk/api/KsScene;Lcom/kwad/sdk/api/KsLoadManager$RewardVideoAdListener;)V
    .locals 1
    .param p2    # Lcom/kwad/sdk/api/KsLoadManager$RewardVideoAdListener;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param

    const/4 v0, 0x2

    invoke-interface {p1, v0}, Lcom/kwad/sdk/api/KsScene;->setAdStyle(I)V

    new-instance v0, Lcom/kwad/sdk/core/h/a/e;

    invoke-direct {v0, p1}, Lcom/kwad/sdk/core/h/a/e;-><init>(Lcom/kwad/sdk/api/KsScene;)V

    new-instance p1, Lcom/kwad/sdk/core/h/d$4;

    invoke-direct {p1, p0, p2}, Lcom/kwad/sdk/core/h/d$4;-><init>(Lcom/kwad/sdk/core/h/d;Lcom/kwad/sdk/api/KsLoadManager$RewardVideoAdListener;)V

    invoke-static {v0, p1}, Lcom/kwad/sdk/core/h/d;->a(Lcom/kwad/sdk/core/h/a/e;Lcom/kwad/sdk/core/h/d$a;)V

    return-void
.end method

.method public loadSplashScreenAd(Lcom/kwad/sdk/api/KsScene;Lcom/kwad/sdk/api/KsLoadManager$SplashScreenAdListener;)V
    .locals 3
    .param p1    # Lcom/kwad/sdk/api/KsScene;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param
    .param p2    # Lcom/kwad/sdk/api/KsLoadManager$SplashScreenAdListener;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param

    const/4 v0, 0x4

    invoke-interface {p1, v0}, Lcom/kwad/sdk/api/KsScene;->setAdStyle(I)V

    invoke-static {}, Lcom/kwad/sdk/core/preload/SplashPreloadManager;->a()Lcom/kwad/sdk/core/preload/SplashPreloadManager;

    move-result-object v0

    invoke-virtual {v0}, Lcom/kwad/sdk/core/preload/SplashPreloadManager;->b()Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    const/4 v1, 0x1

    if-lez v0, :cond_0

    const/4 v0, 0x1

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    :goto_0
    if-eqz v0, :cond_1

    goto :goto_1

    :cond_1
    const/4 v1, 0x5

    :goto_1
    invoke-interface {p1, v1}, Lcom/kwad/sdk/api/KsScene;->setAdNum(I)V

    const-string v0, "AdRequestManager"

    const-string v1, "loadSplashScreenAd "

    invoke-static {v0, v1}, Lcom/kwad/sdk/core/d/b;->d(Ljava/lang/String;Ljava/lang/String;)V

    new-instance v0, Lcom/kwad/sdk/core/h/a/e;

    invoke-direct {v0, p1}, Lcom/kwad/sdk/core/h/a/e;-><init>(Lcom/kwad/sdk/api/KsScene;)V

    invoke-static {}, Lcom/kwad/sdk/core/preload/SplashPreloadManager;->a()Lcom/kwad/sdk/core/preload/SplashPreloadManager;

    move-result-object v1

    invoke-virtual {v1}, Lcom/kwad/sdk/core/preload/SplashPreloadManager;->b()Ljava/util/List;

    move-result-object v1

    new-instance v2, Lcom/kwad/sdk/core/h/d$1;

    invoke-direct {v2, p0, p1, p2}, Lcom/kwad/sdk/core/h/d$1;-><init>(Lcom/kwad/sdk/core/h/d;Lcom/kwad/sdk/api/KsScene;Lcom/kwad/sdk/api/KsLoadManager$SplashScreenAdListener;)V

    invoke-static {v0, v1, v2}, Lcom/kwad/sdk/core/h/d;->a(Lcom/kwad/sdk/core/h/a/e;Ljava/util/List;Lcom/kwad/sdk/core/h/d$a;)V

    return-void
.end method
